package com.jyh.blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * (UniqueView)实体类
 *
 * @author jyh
 * @since 2023-02-19 15:19:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UniqueView implements Serializable {
    private static final long serialVersionUID = 619017805980539851L;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 访问量
     */
    private Integer viewsCount;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}

